#!/bin/bash

# week 8 Lab

echo "Test Case 1: Testing 23/23"
tc=`java -jar Grades_v2.jar 25 25`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
  else echo "Test Failed"
fi

echo "=========================="
echo "Test Case 2: Testing 100/55"
tc=`java -jar Grades_v2.jar 100 55 `

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
  else echo "Test Failed"
fi
echo "=========================="

echo "Test Case 3: Testing 10/100"
tc=`java -jar Grades_v2.jar 10 100 `

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
  else echo "Test Failed"
fi
echo "=========================="

echo "Test Case 4: Testing 50/40"
tc=`java -jar Grades_v2.jar 50 40 `

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
  else echo "Test Failed"
fi
echo "=========================="

echo "Test Case 5: Testing 0/-1"
tc=`java -jar Grades_v2.jar 0 -1 `

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
  else echo "Test Failed"
fi
echo "=========================="
